package com.visizen.wisdomclass.server.model.dto;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import com.visizen.wisdomclass.server.model.WcPermission;
import com.visizen.wisdomclass.server.model.WcRole;

import java.util.List;

/**
 * @author: chenjian
 */
public class RoleExt extends WcRole {
    @JSONField(name = "permissionList")
    private List<WcPermission> permissions;

    public List<WcPermission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<WcPermission> permissions) {
        this.permissions = permissions;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
